"""
TOPSHIRIQLAR_23.07.2022_08.16
"""
###########################  1
def beshdankichiksonlar(raqam):
    """
    5 dan kichik yoki teng kodi.
    """
    for i in raqam:
        if i <= 5:
            print(i, end = " ")
    print()
beshdankichiksonlar([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])  #ro'yhat
# beshdankichiksonlar(list(range(1, 11)))   o'zi yozadi sonlarni
###########################  2
def beshdankichiksonlar2(raqam):
    """
    5 ga teng bo'lgan sonlarni ro'yhat bilan chiqarish
    """
    print([i for i in raqam if i == 5])
beshdankichiksonlar2(list(range(1, 11)))
###########################  3
def besh(olti):
    """
    1 dan 11 gacha bo'lgan sonlarni chiqarish
    """
    for i in olti:
        print(i, end = " ")
    print()
besh(list(range(1, 11)))
###########################  4
def besh1(olti):
    """
    6 ga teng sonni chiqarish kodi
    """
    for i in olti:
        if i ==6:
            print(i, end = " ")
    print()
besh1(list(range(1, 11)))
###########################  5
def besh1(olti):
    """
    return bilan ishlash 5 dan kichik sonlarni chiqarish
    """
    return list(filter(lambda elem : elem < 5, olti))
print(besh1([1, 11]))
###########################  6
def besh2(olti):
    """
    return bilan ishlash
    """
    itim = []
    for i in olti:
        if i < 10:
            itim.append(i)
    return itim
print(besh2(range(1, 11)))
###########################  7
def besh3(olti):
    item = []
    for i in olti:
        if i > 5:
            item.append(i)
    print(item)
besh3(list(range(1, 11)))
###########################  while bilan ishlash
royxat = list(range(1,100))
for narsaral in royxat:
    if narsaral == 50:
        break
    print(narsaral, end = ', ')
i = 0
while i <= 5:
    print(i)
    i += 1
########################### while 100 gacha royhat
PPP = list(range(1, 101))
while i <=100:
    print(i, i, i)
    i += 1
###########################  randum da ishlash
"""
WHILE
"""
import random

ogabek = list(range(1, 101))
print(ogabek)

munira = ogabek
random.shuffle(munira)
print(munira)
